package demo3;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.openPower();
        //使用鼠标
        computer.IUsbService(new Mouse());
        //使用键盘
        computer.IUsbService(new KeyBoard());
        computer.closePower();
    }
}
